package gui.swings;

import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JPanel;
import javax.swing.JToggleButton;
import javax.swing.border.TitledBorder;
import javax.swing.plaf.basic.BasicArrowButton;

public class SwingButtons extends JPanel{

	JButton jb=new JButton("JButton");
	BasicArrowButton up=new BasicArrowButton(BasicArrowButton.NORTH),
			down=new BasicArrowButton(BasicArrowButton.SOUTH),
			right=new BasicArrowButton(BasicArrowButton.EAST),
			left=new BasicArrowButton(BasicArrowButton.WEST);
	
	SwingButtons(){
		this.add(jb);
		this.add(new JToggleButton("JToggleButton"));
		this.add(new JCheckBox("JCheckBox"));
		JPanel jp=new JPanel();
		jp.setBorder(new TitledBorder("Directions"));
		jp.add(up);
		jp.add(down);
		jp.add(left);
		jp.add(right);
		this.add(jp);
	}
	
	public static void main(String[]args){
		SwingShow.inFrame(new SwingButtons(), 300, 200);
	}
}
